﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ChainAnalises.Classes.AuxiliaryClasses.DataManipulators.Iterators;
using ChainAnalises.Classes.DivizionToAccords;
using ChainAnalises.Classes.IntervalAnalysis;

namespace Segmentator.Dividers
{
    internal class CommonLessOneStratagy:Strategy
    {
        public void Calculate(IDataCollector mines_one, Chain chain, int disp)
        {
            IteratorStart<Chain, Chain> it = new IteratorStart<Chain, Chain>(chain, chain.Length - 1, 1);
            it.Next();
            it.Next();
            mines_one.Add(it, disp);
        }

    }
}
